package com.sys.serviceImpl;

import com.sys.mapper.GroupinfoMapper;
import com.sys.model.Groupinfo;
import com.sys.service.GroupinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class GroupinfoServiceImpl implements GroupinfoService {

    @Autowired
    private GroupinfoMapper mapper;

    /*删除用户组信息*/
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return mapper.deleteByPrimaryKey(id);
    }

    /*添加用户组信息*/
    @Override
    public int insertSelective(Groupinfo record) {
        return mapper.insertSelective(record);
    }

    /*查询用户组信息*/
    @Override
    public Groupinfo selectByPrimaryKey(Integer id) {
        return mapper.selectByPrimaryKey(id);
    }

    /*查询全部用户组信息*/
    @Override
    public List<Groupinfo> getgroupinfoList(Map requestparamMap) {
        return mapper.getgroupinfoList(requestparamMap);
    }

    @Override
    public int updateByPrimaryKeySelective(Groupinfo record) {
        return mapper.updateByPrimaryKeySelective(record);
    }
}
